<p>Um einen neuen Benutzer anzulegen, klicken Sie bitte auf
    <a href="/user/create/">"Neuen Benutzer anlegen"</a></p>
<table border="0">
    <caption>Benutzer Auflistung</caption>
    <thead>
    <tr>
        <th>Vorname</th>
        <th>Nachname</th>
	<th>E-Mail</th>
	<th>Telefon</th>
	<th>Arbeitszeit</th>
	<th>Admin</th>
	<th>&Auml;ndern</th>
	<th>Status</th>
    </tr>
    </thead>
    <tbody>   
<?php foreach($this->users as $user) : ?>
    <tr>
        <td><?php echo $user['forename'] ?></td>
        <td><?php echo $user['surname'] ?></td>
	<td><?php echo $user['email'] ?></td>
	<td><?php echo $user['telnumber'] ?></td>
	<td><?php echo $user['form_of_employment'] ?></td>
	<td><?php echo $user['is_admin'] == 'Y' ? 'Ja' : 'Nein'; ?></td>
	<td><a href="/user/update/id/<?php echo $user['id']?>">&Auml;ndern</a></td>
	<td><a name="<?php echo $user['forename'] . " " . $user['surname'] ?>" id="<?=$user['id']?>" href="/user/setinaktiv/id/<?=$user['id']?>">Aktiv</a></td>
    </tr>
<?php endforeach; ?>
<?php foreach ($this->usersInactive as $inactive) : ?>
    <tr class="inactive" style="display: none; background-color: wheat">
	<td><?php echo $inactive['forename'] ?></td>
        <td><?php echo $inactive['surname'] ?></td>
	<td><?php echo $inactive['email'] ?></td>
	<td><?php echo $inactive['telnumber'] ?></td>
	<td><?php echo $inactive['form_of_employment'] ?></td>
	<td><?php echo $inactive['is_admin'] == 'Y' ? 'Ja' : 'Nein'; ?></td>
	<td><a href="/user/update/id/<?=$inactive['id']?>">&Auml;ndern</a></td>
	<td><a name="<?php echo $inactive['forename'] . " " . $inactive['surname'] ?>" id="<?=$inactive['id']?>" href="/user/setaktiv/id/<?=$inactive['id']?>">Inaktiv</a></td>
    </tr>
<?php endforeach; ?>
    </tbody>
</table>
<p>Es existieren <?php echo $this->userCount ?> Benutzer</p>
<p class="showhide" style="cursor: pointer">Es existieren <?php echo $this->userCountInactive ?> inaktive Benutzer</p>